Skip to content

Conversation

@mellado
Copy link

@mellado mellado commented Jun 23, 2022

There is a bug when you send some data, and then in a second communication with smaller data you can see at the end of the the previous last part of the larger data. Then the size obtained is the same in both cases.

There is a bug when you send some data, and then in a second communication with smaller data you can see at the end of the the previous last part of the larger data. Then the size obtained is the same in both cases.
@guitronimo
Copy link

guitronimo commented Jul 23, 2024

This same problem still exists when using option 1 or 3 from Server to client.

This seem to have fixed it:

client_example:

// observer callback. will be called for every new message received by the server
void onIncomingMsg(const char * msg, size_t size) {
	std::cout << "Got msg from server: " << std::string(msg, size) << "\n";
}```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants